//本地数据

var app = getApp();

Page({

  data: {
   
  },
  
  onLoad: function () {
  },
  onShow() {
  
  },
  
  getStars:function(e){
    var e = Math.round(e)
    var stars = []
    for(var i = 0; i < 5; i++){
      if (i<e){
        stars.push(1)
      }else{
        stars.push(0)
      }
    }
    return stars
  },
})